package it.univaq.mwt.frontoffice.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.validator.ValidatorForm;

public class UserSearchForm extends ValidatorForm{
	
	private static final long serialVersionUID = 1L;	
	private String user;

	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
/*	
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    this.user="";
   
    }

  public ActionErrors validate( 
      ActionMapping mapping, HttpServletRequest request ) {
      ActionErrors errors = new ActionErrors();
      
      if( getUser() == "" || getUser().length() < 1 ) {
        errors.add("user",new ActionMessage("error.user.required"));
      }
     

      return errors;
  }
	
	*/
}
